function foo(person) {
    person.age = 20
    person = {  //对person对象重新赋值
        name: '刘洋'
    }
    return person
}
let p1 = {
    name: '张三',
    age: 18
}
let p2 = foo(p1)

console.log(p1);
console.log(p2);

//"D:\前端ai图片资料\对象的重新声明.png"